package com.example.voice.enums;

/**
 * 任务状态枚举
 * @author crp
 * @since 2025-01-26
 */
public enum TaskStatus {
    PENDING("PENDING", "等待处理"),
    PROCESSING("PROCESSING", "处理中"),
    COMPLETED("COMPLETED", "已完成"),
    FAILED("FAILED", "处理失败");
    
    private final String code;
    private final String description;
    
    TaskStatus(String code, String description) {
        this.code = code;
        this.description = description;
    }
    
    public String getCode() {
        return code;
    }
    
    public String getDescription() {
        return description;
    }
}
